using PowerManage.Entity.Enums;

namespace PowerManage.Entity.Dtos.Accounts;

/// <summary>
/// 登录账号权限
/// </summary>
public class AccountPermissionsDto
{
    public long Id { get; set; }

    /// <summary>
    /// 权限名称
    /// </summary>
    public string Name { get; set; }

    /// <summary>
    /// 权限编码
    /// </summary>
    public string Code { get; set; }

    /// <summary>
    /// url地址
    /// </summary>
    public string? Url { get; set; }

    /// <summary>
    /// vue页面组件
    /// </summary>
    public string? Component { get; set; }

    /// <summary>
    /// 图标
    /// </summary>
    public string? Icon { get; set; }

    /// <summary>
    /// 菜单类型：菜单权限、元素权限、Api权限、数据权限
    /// </summary>
    public PermissionType PermissionType { get; set; }

    /// <summary>
    /// api方法
    /// </summary>
    public string? ApiMethod { get; set; } = string.Empty;

    /// <summary>
    /// 排序
    /// </summary>
    public int Sort { get; set; }

    /// <summary>
    /// 父菜单Id
    /// </summary>
    public long ParentId { get; set; }

    /// <summary>
    /// 备注
    /// </summary>
    public string? Remark { get; set; }
}